#!/usr/bin/env perl

=head1 BASE INFORMATION

=head2 Filename

catework_make_static.pl

=head2 Path

script/

=head2 Notes

=head2 ToDo's

=head2 Revision

=over 4

=item *

$HeadURL$

=item * 

$Id$

=back

=head2 Source Code

=cut

use warnings;
use strict;
use FindBin qw($Bin);
use lib "$Bin/../lib";
use catwork::Model::Helper;

use Config::Any;
use Data::Dumper;
my $cfg = get_cfg();
print catwork::Model::Helper->MakeStatic($cfg);
#print get_name();
# and so on ...

use Config::Any;
use Data::Dumper;
sub get_cfg {
    my $file = "$Bin/../catwork.pl";
    my $cfg = Config::Any->load_files({files => [$file] });

    return $cfg->[0]->{$file};
}


=head1 NAME

catework_make_static.pl - Create static files from source

=head1 SYNOPSIS

catework_make_static.pl all|[js|css]

=head2 Options:

   --help         display this help and exits

=head2 Examples:

   catework_create.pl all
   catework_create.pl js

=head1 DESCRIPTION

Create static files from sources

Loops through all static source dirs and creates static files.
It will replace the right paths and minimize the static files.

=head1 AUTHORS

Maik Schüller <maik.schueller@x-oss.de>

=head1 COPYRIGHT

This library is free software. You can redistribute it and/or modify
it under the same terms as Perl itself.

=cut
